package com.mdxx.xczd.ui.contract;

import com.mdxx.xczd.bean.BarCodeBeanResult;
import com.mdxx.xczd.bean.BindStateResult;
import com.mdxx.xczd.ui.base.BaseModel;
import com.mdxx.xczd.ui.base.BasePresenter;
import com.mdxx.xczd.ui.base.BaseView;
import rx.Observable;

/**
 * Created by MD-02 on 2017/1/21.
 */

public interface FirstContract {
    interface Model extends BaseModel {
        Observable<BarCodeBeanResult> getBarCodeData();
        Observable<BindStateResult> getBindState();
    }

    interface View extends BaseView {
        void returnBarCodeData(int type, int code);

        void returnBindState(int code);

    }

    abstract static class Presenter extends BasePresenter<FirstContract.View, FirstContract.Model> {
        public abstract void requestBarCode(int type);

        public abstract void getBindState();
    }
}
